const Router = require('koa-router')
const router = new Router({
    prefix: '/v1/classic'
})

const { PositiveIntegerValidator } = require('../../validators/validator')

const { Auth } = require('../../../middlewares/auth')

//接口可放多个中间件,逗号隔开,注意这里m是当成属性
router.get('/latest', new Auth().m, async (ctx, next) => {
    ctx.body = ctx.auth.uid
})

module.exports = router 